package com.gjl.web.controller.wx;

import com.gjl.common.core.controller.BaseController;
import com.gjl.common.core.domain.entity.SysUser;
import com.gjl.common.core.page.TableDataInfo;
import com.gjl.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName : WxTestController
 * @Description : TODO
 * @Author : liuhui.jiao
 * @Date: 2025/11/11 22:08
 */
@RestController
@RequestMapping("/wx/test")
public class WxTestController extends BaseController {

    @Autowired
    private ISysUserService userService;

    /**
     * 获取用户列表
     */
    @PreAuthorize("@ss.hasPermi('/wx/test:list')")
    @GetMapping("/list")
    public TableDataInfo list(SysUser user)
    {
        startPage();
        List<SysUser> list = userService.selectUserList(user);
        return getDataTable(list);
    }

}
